home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0195.lzh / AMOSLIST / text0226.txt < prev    next >
Encoding:
Text File  |  1995-02-01  |  1.9 KB  |  68 lines

  1. Press RETURN for more...
  2.  
  3.  
  4. MAIL> 
  5.  
  6.  
  7.     #1          24-JAN-1995 00:45:33.96                                 
  8. NEWMAIL
  9.  
  10. Content-type: TEXT/PLAIN; CHARSET=US-ASCII
  11. Content-transfer-encoding: 7BIT
  12.  
  13. The problem with examining the parallel port is that we do not know for sure
  14. jus
  15. t how your sampler is sending data.
  16.  
  17. bits 0-7 of the data at $bfe101 correspond to pins 2-9 and are usually used for
  18.  
  19. 8 bit data transfer, but these pins can be programmed as input or output, each
  20. a
  21. nd every last one of them.
  22. This is done by putting a number in $bfe301, a 1 for output, and 0 for input.
  23. add up the value of all these 1 and 0 in binary and put that number in.
  24.  
  25. Now thats just getting started, we have 3 more pins on the parallel port we can
  26.  
  27. program as in/out pins.
  28.  
  29. These pins are read or written to at $bfd100 and bits 0-2 correspond to pins
  30. 11-
  31. 13 on the parallel port.
  32.  
  33. these pins are programmed at $bfd200.  other bits at this address control part
  34. o
  35. f the serial in/out, so you should set these bits without disturbing what is
  36. the
  37. re.
  38. Now usually there is a loop of code that is controling the sampler, when does
  39. it
  40.  read the next byte, and what control lines does it opperate to get the sampler
  41.  
  42. to move the next 4,8 or ? bits to the port.
  43. You should probably write the manufacture of your sampler and get just as much
  44. i
  45. nfo as you can about the hardware and what pins of the port control it, etc.
  46. I think it will be hard to just hack, but you can multitask amos with some
  47. progr
  48. ams, and if your lucky, maybe you can just pick up enough
  49. info from reading $bfe101
  50.  
  51.  
  52. Press RETURN for more...
  53.  
  54.  
  55. MAIL> ^Z
  56.  
  57. MAIL Menu:
  58.  
  59. FAX Service              Easylink
  60. Mail (Electronic)        Translation Services
  61. Scan for New Messages    Workspace
  62. SetMail 
  63.  
  64. I am sorry some header and other junk got stuck in here, but I only have a capture file of the message, and did not have time to go off line to edit it. 
  65.  
  66. Good luck.
  67.  
  68.